// console.log (staticJS);

var myApp = angular.module ('myApp', ['ui.router']);

myApp.config (function ($stateProvider) {
  $stateProvider
    .state ('C1', {
      url: '/C1',
      template: '<h1>进入C1状态</h1><tt my-text="测试属性"></tt><aa></aa>',
    })
    .state ('C2', {
      url: '/C2',
      template: `
        <div>
          <bb></bb>
          <h1>这是page1</h1>
          <p>这是用ES6语法写的HTML</p>
          <fs-text></fs-text>
        </div>
      `,
    })
    .state ('C3', {
      url: '/C3',
      templateProvider: function () {
        return '<h1>进入C3状态</h1>';
      },
    });
});

myApp.run (function ($state) {
  $state.go ('C1');
});

myApp.controller ('mainCtrl', [
  '$scope',
  function ($scope) {
    $scope.name = 'aaaa';
    $scope.job = 'bbb';
  },
]);
